//console.log("main.js0");
import Vue from 'vue'
import App from '@/App.vue';
Vue.config.productionTip = false;
import 'element-ui/lib/theme-chalk/index.css';

import baiduMap from 'vue-baidu-map'
Vue.use(baiduMap, {
	/* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
	ak: 'TG3Bk7cGh0Tp2te0uUVG2gdy0m6N7et8'
});

//elementui的加载改到了config.setLanguageObj,由config.init调用触发
// import ElementUI from 'element-ui'
// Vue.use(ElementUI, {
// 	size: "small"
// });
import UmyUi from 'umy-ui'
import 'umy-ui/lib/theme-chalk/index.css'; // 引入样式
Vue.use(UmyUi);
import ckeditor from 'ckeditor4-vue';
Vue.use(ckeditor);

import editor from "@/common/components/editor";
Vue.component('editor', editor);

window.Vue = Vue;

//console.log("main.js1");
import VabRemixIcon from "@/pages/common/zxlayout/VabRemixIcon.vue";
Vue.component('vab-remix-icon', VabRemixIcon);
import VabColorfulIcon from "@/pages/common/zxlayout/VabColorfulIcon.vue";
Vue.component('vab-colorful-icon', VabColorfulIcon);
import vabVerify from 'zx-verify'
import 'zx-verify/dist/zx-verify.css'
Vue.component('vab-verify', vabVerify);

import "zx-quill/dist/zx-quill.css";
import VabQuill from "zx-quill";
Vue.component('vab-quill', VabQuill);
import "zx-markdown-editor/dist/zx-markdown-editor.css";
import VabMarkdownEditor from "zx-markdown-editor";
Vue.component('vab-markdown-editor', VabMarkdownEditor);

import VabQueryForm from "@/pages/common/zxlayout/VabQueryForm/VabQueryForm.vue";
Vue.component('vab-query-form', VabQueryForm);
import VabQueryFormLeftPanel from "@/pages/common/zxlayout/VabQueryForm/VabQueryFormLeftPanel.vue";
Vue.component('vab-query-form-left-panel', VabQueryFormLeftPanel);
import VabQueryFormRightPanel from "@/pages/common/zxlayout/VabQueryForm/VabQueryFormRightPanel.vue";
Vue.component('vab-query-form-right-panel', VabQueryFormRightPanel);
import VabCount from 'zx-count'
Vue.use(VabCount)

import uploadimg from "@/common/components/uploadimg.vue";
Vue.component('uploadimg', uploadimg);
import uploadfile from "@/common/components/uploadfile.vue";
Vue.component('uploadfile', uploadfile);
import remoteselect from "@/common/components/remoteselect.vue";
Vue.component('remoteselect', remoteselect);
import selectprint from "@/common/components/selectprint.vue";
Vue.component('selectprint', selectprint);
import elSelect2 from "@/common/components/elSelect2.vue";
Vue.component('elSelect2', elSelect2);
import opmerge from "@/common/components/opmerge.vue";
Vue.component('opmerge', opmerge);
import elTableColumn2 from "@/common/components/elTableColumn2.vue";
Vue.component('elTableColumn2', elTableColumn2);
import uTableColumn2 from "@/common/components/uTableColumn2.vue";
Vue.component('uTableColumn2', uTableColumn2);
import empty from "@/common/components/empty.vue";
Vue.component('empty', empty);
import renderdom from "@/common/components/renderdom.vue";
Vue.component('renderdom', renderdom);

// import Fragment from 'vue-fragment';
// Vue.use(Fragment.Plugin);
import router from '@/common/router.js';
import store from '@/common/store.js';
import config from '@/common/config.js';
import common from '@/common/common.js';
//进度条弹窗能够拖拽移动
import '@/common/dialogDrag.js';

//codemirror
import {
	codemirror
} from 'vue-codemirror'
import "codemirror/mode/sql/sql.js";
import 'codemirror/mode/javascript/javascript.js';
import "codemirror/mode/clike/clike.js";
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/eclipse.css';
Vue.component('codemirror', codemirror);


import '@/css/public.css';
import '@/css/vab.scss';
//console.log("main.js2");
config.init();
common.init();
var app = new Vue({
	el: '#app',
	router,
	store,
	render: h => h(App),
});
window.app = app;
window.common = common;
window.config = config;
//console.log("main.js3");
//console.log("$('#app').length", $('#app').length);
//console.log("process.env", process.env);

// #ifdef H5
//提交前需要注释 本地调试使用
//const vconsole = require('vconsole');
//Vue.prototype.$vconsole = new vconsole(); // 使用vconsole
// #endif

//console.log("main.js4");